package com.tsing.cli.system.vo.req;

import com.tsing.cli.common.vo.BasePageVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author TheTsing
 * @since 2022-11-30 10:02
 */
@Getter
@Setter
public class LogPageReqVO extends BasePageVO {

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "根据开始时间查询", example = "1970-01-01 08:00:00")
    private Date startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "根据结束时间查询", example = "2099-12-31 23:59:59")
    private Date endTime;

    @Schema(description = "根据用户名查询", example = "admin")
    private String username;

}
